<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%> 
<%@ include file="../jspf/jsp_header.jspf"%>
<jforum:navBar id="<%=IConst.PAGE.TITLE_NAV_BAR%>">
	<jforum:navElement>
		<jforum:link>
			ShowForum.do?fid=<c:out value="${param.fid}" /> 
		</jforum:link>
		<jforum:title>
			<jforum:codec value="${requestScope.JFORUM_CURR_FORUM.forumtitle}" />
		</jforum:title>
	</jforum:navElement>
	<jforum:navElement>
		<jforum:title>
			<jforum:codec value="${requestScope.JFORUM_CURR_TOPIC.subject}" />
		</jforum:title>
	</jforum:navElement>
</jforum:navBar>
<%@ include file="../jspf/topbar.jspf"%>
<script charset="utf-8" src="<jforum:config key='webroot' />editor/kindeditor.js"></script>
<script charset="utf-8" src="<jforum:config key='webroot' />js/ThreadList.js"></script>
<script charset="utf-8" src="<jforum:config key='webroot' />js/prototype/prototype.js"></script>

<table width="970" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td class="center-bg">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td>
						<a href="<jforum:config key='webroot' />MessageManager.do?method=addInit&fid=<c:out value='${param.fid}' />"> <img
								src="images/common/btn_fbht.gif" border="0" /> </a>

					</td>
					<!-- 分页开始 -->
					<td>
						<div id="page">
							<ul>
								<li>
									总回复数:
									<font color="red"><c:out
											value="${requestScope.JFORUM_NUM_REPLYS}" /> </font>
								</li>
							</ul>
						</div>
					</td>
					<!-- 分页结束 -->
				</tr>
			</table>
		</td>
	</tr>

	<tr>
		<td class="center-bg">
			<form name="content" action="">
				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					class="bbslist02-table">
					<tr>
						<td>
							<table width="100%" border="0" cellpadding="0" cellspacing="0"
								class="bbslist03-td">
								<tr>
									<td width="73%">
										&nbsp;&nbsp;
										<fmt:message key="forum.TOPICS" />
										:
										<span class="caption"> <jforum:process cutToLength="40"
												value="${requestScope.JFORUM_CURR_TOPIC.subject}" /> </span>&nbsp;&nbsp;
									</td>

									<td width="13%" class="bbslist03-td01">
										共有<c:out value="${requestScope.JFORUM_CURR_TOPIC.vcount}" />人访问本帖
									</td>
								</tr>
							</table>
							<c:forEach var="thread"
								items="${requestScope.JFORUM_TOPICE_MESSAGES}"
								varStatus="status">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="21%" class="bbslist03-row-left">
											作者<a href="/forum/jsp/user/user_index.jsp?userId=957071"> <c:out
													value="${thread.sender}" /> </a>
										</td>
										<td width="79%" class="bbslist03-row">
											发表时间：<fmt:formatDate value="${thread.intime}" type="both"
												dateStyle="medium" timeStyle="short" />
											&nbsp;&nbsp;赞成：0&nbsp;&nbsp;反对：0 &nbsp;&nbsp;&nbsp;&nbsp;楼主
										</td>
									</tr>
									<tr>
										<td rowspan="2" class="bbslist03-row-left-01"
											style="vertical-align: top;">
											<table border="0" cellspacing="5" cellpadding="0">
												<tr>
													<td>
														<img src="images/common/tx.jpg" width="98" height="98" />
													</td>
												</tr>
												<tr>
													<td>
														等级：1
													</td>
												</tr>
												<tr>
													<td>
														发帖数：<c:out value="${thread.senderInfo.totalMess}"></c:out>
													</td>
												</tr>
												<tr>
													<td>
														注册：<fmt:formatDate value="${thread.senderInfo.intime}"
															type="both" dateStyle="medium" timeStyle="short" />
													</td>
												</tr>
												<tr>
													<td>
														来自：<c:out value="${thread.senderInfo.info.city}"></c:out>
													</td>
												</tr>
											</table>
										</td>
										<!-- <div id="fcTextd" style="display: none;" ></div> -->
										<td class="bbslist03-row-01" style="word-break: break-all"
											height="150">
											<div id="fcText">
													<c:out value="${thread.contents}" escapeXml="false" />
											</div>
											<br />

										</td>
									</tr>
									<tr>
										<td class="bbslist03-row-bot-01">
											<a href="javaScript:toQoute('fcText');">引用</a>
											<a href="javaScript:doContentVote();">赞成</a>
											<a href="javaScript:doContentOppose();">反对</a>
										</td>
									</tr>
								</table>
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td height="8"></td>
									</tr>
								</table>
							</c:forEach>
							<c:choose>
								<c:when test="${!empty requestScope.JFORUM_TOPICE_MESSAGES}">
									<tr class="lght">
										<td class="t_g" colspan="5">
											&nbsp;
										</td>
									</tr>

								</c:when>
								<c:otherwise>
									<tr class="lght">
										<td class="t_g" colspan="5">
											<fmt:message key="threads.NO_THREADS" />
										</td>
									</tr>
								</c:otherwise>
							</c:choose>

						</td>
					</tr>
				</table>
			</form>
		</td>
	</tr>

	<tr>
		<td class="center-bg">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td>
						&nbsp;
					</td>
					<!-- 分页开始 -->
					<td>
						<div id="pagebot" nowrap="nowrap">
							<ul>
								<li>
									总回复数
									<font color="red"><c:out
											value="${requestScope.JFORUM_NUM_REPLYS}" /> </font>
								</li>
							</ul>
						</div>
					</td>
					<!-- 分页结束 -->
				</tr>
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td>
						&nbsp;
					</td>
				</tr>
			</table>
			<table width="100%" border="0" cellpadding="0" cellspacing="0"
				class="bbslist03-td">
				<tr>
					<td>
						&nbsp;&nbsp;
						<fmt:message key="forum.TOPICS" />
						:
						<span class="caption"> <jforum:process cutToLength="40"
								value="${requestScope.JFORUM_CURR_TOPIC.subject}" /> </span>&nbsp;&nbsp;
					</td>
				</tr>
			</table>



			<form id="replyform" name="replyform" method="post">
				<input type="hidden" name="heading" value=<c:out value='${requestScope.JFORUM_CURR_TOPIC.subject}' /> />
				<input type="hidden" name="tid" value=<c:out value="${param.tid}" /> />
				<input type="hidden" name="fid" value=<c:out value="${param.fid}" /> />
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td class="bbslist04-row-left-02">
							回复：
						</td>
						<td class="bbslist04-row-right-02">
							<textarea cols="100" id=""contents"" name="contents" style="width: 100%;">Some Initial Content was in this textarea</textarea>
						</td>
					</tr>
					<tr>
						<td colspan="2" class="bbslist04-row-03">
							<a href="javaScript:fb();">
								<img src="images/common/fb.gif" width="57" height="21" border="0" />
							</a>
						</td>
					</tr>
				</table>
			</form>
		</td>
	</tr>
</table>